/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fhv.itb.mst2955.client.model;

import java.io.Serializable;

/**
 * A client-side address object.
 */
public class AddressProxy implements Serializable, UpdateObject {
    private static final long serialVersionUID = 1L;

    private String city;
    private Integer id;
    private String street;
    private String zip;
    private Integer countryID;
    private Integer versionNr;
    private CountryProxy country;


    public AddressProxy() {
    }


    public AddressProxy(Integer id) {
        this.id = id;
    }


    public AddressProxy(Integer id, String city, String zip, int countryID) {
        this.id = id;
        this.city = city;
        this.zip = zip;
        this.countryID = countryID;
    }


    public String getCity() {
        return city;
    }


    public void setCity(String city) {
        this.city = city;
    }


    public Integer getId() {
        return id;
    }


    public void setId(Integer id) {
        this.id = id;
    }


    public String getStreet() {
        return street;
    }


    public void setStreet(String street) {
        this.street = street;
    }


    public String getZip() {
        return zip;
    }


    public void setZip(String zip) {
        this.zip = zip;
    }


    public Integer getCountryID() {
        return countryID;
    }


    public void setCountryID(Integer countryID) {
        this.countryID = countryID;
    }


    public CountryProxy getCountry() {
        return country;
    }


    public void setCountry(CountryProxy country) {
        this.country = country;
    }
    

    public String getCountryNickName() {
        return country.getNickName();
    }

    
    public Integer getVersionNr() {
        return versionNr;
    }


    public void setVersionNr(Integer versionNr) {
        this.versionNr = versionNr;
    }

}
